home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / demo / wit472.zip / LIB / HELP / MORPHO / BOPEN / BOPEN.bin
Text File  |  1994-11-25  |  2KB  |  50 lines

  1. OPERATOR
  2.  
  3. bopen --- binary opening
  4.  
  5.  
  6. DESCRIPTION
  7.  
  8. The bopen operator performs a morphological opening on its binary input image. 
  9. An opening is an erosion followed by a dilation. The number of iterations 
  10. specified by the niterations parameter determines how many times the erosion 
  11. and dilation are executed. The effect of an opening is to smooth objects and 
  12. remove isolated pixels. 
  13.  
  14. For example, bopen could be used to remove noise in the form of a single 
  15. vertical line through an input image caused by a noisy input channel from 
  16. the image collector device: 
  17.  
  18.  
  19.  
  20.    1)    Input: 0 0 0 0 0 0 1 0    Kernel: 1 1 1
  21.                 0 0 1 0 0 0 1 0
  22.                 0 1 1 1 1 0 1 0
  23.                 0 1 1 1 1 1 1 0
  24.                 0 1 1 1 1 1 1 1
  25.                 0 0 0 0 1 1 1 1
  26.                 0 0 0 0 0 1 1 1
  27.                 0 0 0 0 0 0 1 0
  28.                 0 0 0 0 0 0 1 0
  29.                 0 0 0 0 0 0 1 0
  30.  
  31.  
  32.  
  33.        Erosion: 0 0 0 0 0 0 0 0    Dilation: 0 0 0 0 0 0 0 0
  34.                 0 0 0 0 0 0 0 0              0 0 0 0 0 0 0 0
  35.                 0 0 1 1 0 0 0 0              0 1 1 1 1 0 0 0
  36.                 0 0 1 1 1 1 0 0              0 1 1 1 1 1 1 0
  37.                 0 0 1 1 1 1 1 1              0 1 1 1 1 1 1 1
  38.                 0 0 0 0 0 1 1 1              0 0 0 0 1 1 1 1
  39.                 0 0 0 0 0 0 1 1              0 0 0 0 0 1 1 1
  40.                 0 0 0 0 0 0 0 0              0 0 0 0 0 0 0 0
  41.                 0 0 0 0 0 0 0 0              0 0 0 0 0 0 0 0
  42.                 0 0 0 0 0 0 0 0              0 0 0 0 0 0 0 0
  43.  
  44. 
  45.  
  46. The second to last column of the input image contains a vertical line of 
  47. noise. After the erosion and dilation have occurred (the equivalent of one 
  48. opening), the vertical line is gone and there is only minimal data loss, 
  49. namely the pixel in row 2 column 3 has been cleared. 
  50.